package com.zxx.pattern.statePattern.state3;

/**
 * @author zxx on 2021/1/18
 */
public class StatePatternDemo {

    public static void main(String[] args) {
        ContextState contextState = new ContextState();

        StartState startState = new StartState();
        startState.doAction(contextState);
        System.out.println(contextState.getState3().toString());

        StopState stopState = new StopState();
        stopState.doAction(contextState);
        System.out.println(contextState.getState3().toString());

    }

}
